package uestc.lj.gulishop.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import uestc.lj.common.utils.R;

/**
 * @Author:Crazlee
 * @Date:2021/6/16
 */
@FeignClient("gulishop-product")
public interface ProductFeignService {
    @GetMapping("/product/spuinfo/{skuId}")
    public R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/brand/info/{brandId}")
    public R info(@PathVariable("brandId") Long brandId);

    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R skuInfo(@PathVariable("skuId") Long skuId);
}
